<template>
  <div class="search">
    <form action="/">
  <van-search
    v-model="value"
    show-action
    placeholder="请输入小区或地址"
    @search="onSearch"
    @cancel="$router.back()"

  />
</form>
  </div>
</template>

<script>
import { Toast } from 'vant'
export default {
  name: 'search',
  data () {
    return {
      value: ''
    }
  },

  created () {

  },

  methods: {
    onSearch (val) {
      Toast(val)
    }
  }
}
</script>

<style scoped lang='less'>

</style>
